home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / Mesa-2.2 / demos / Makefile < prev    next >
Encoding:
Makefile  |  1997-06-25  |  1.6 KB  |  71 lines

  1. # Makefile for demo programs
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  2.0
  5. # Copyright (C) 1995-1996  Brian Paul
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # $Id: Makefile,v 1.12 1996/05/15 18:32:06 brianp Exp $
  23.  
  24. # $Log$
  25.  
  26.  
  27. ##### MACROS #####
  28.  
  29. INCDIR = ../include
  30.  
  31. GL_LIBS = -L../lib -lMesaaux -lMesatk -lMesaGLU -lMesaGL -lm $(XLIBS)
  32.  
  33. LIB_DEP = ../lib/$(GL_LIB) ../lib/$(GLU_LIB) ../lib/$(TK_LIB) ../lib/$(AUX_LIB)
  34.  
  35. ifdef AMIGA
  36. PROGS = bounce gamma gears isosurf osdemo spin test0 texobj reflect winpos
  37. else
  38. PROGS = bounce gamma gears glxdemo glxpixmap isosurf offset osdemo \
  39.     spin test0 texobj xdemo reflect winpos
  40. endif
  41.  
  42. ### TODO: finish new shadow demo
  43.  
  44.  
  45. ##### RULES #####
  46.  
  47. .SUFFIXES:
  48. .SUFFIXES: .c
  49.  
  50. .c: $(LIB_DEP)
  51.     $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@
  52.  
  53.  
  54.  
  55. ##### TARGETS #####
  56.  
  57. default:
  58.     @echo "Specify a target configuration"
  59.  
  60. clean:
  61.     -rm *.o *~
  62.  
  63. realclean:
  64.     -rm $(PROGS)
  65.     -rm *.o *~
  66.  
  67. targets: $(PROGS)
  68.  
  69. include ../Make-config
  70.  
  71.